package org.minbox.framework.mantool.core.support.page;

import java.util.List;

/**
 * 内存分页响应对象
 *
 * @author 就眠仪式
 */
public class PageResponse<T> {

    /**
     * 总页数
     * */
    private int total;

    /**
     * 当前页
     * */
    private int index;

    private List<T> data;

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }
}
